<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>评价管理</title>

		<link href="/Public/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/Public/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/Public/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/Public/css/cmstyle.css" rel="stylesheet" type="text/css">

		<script src="/Public/assets/js/jquery.min.js"></script>
		<script src="/Public/assets/js/amazeui.js"></script>
		<script src="/Public/home/comment.js"></script>	
		<script src="/Public/js/template-native.js"></script>

	</head>

	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<include file="./Application/Home/View/Share/header.html" />
				</div>
			</article>
		</header>
		<div class="nav-table">
			<div class="long-title"><span class="all-goods">全部分类</span></div>
			<div class="nav-cont">
				<ul>
					<li class="index"><a href="#">首页</a></li>
					<li class="qc"><a href="#">闪购</a></li>
					<li class="qc"><a href="#">限时抢</a></li>
					<li class="qc"><a href="#">团购</a></li>
					<li class="qc last"><a href="#">大包装</a></li>
				</ul>
				<div class="nav-extra">
					<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
					<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
				</div>
			</div>
		</div>
		<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-comment">
						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">评价管理</strong> / <small>Manage&nbsp;Comment</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

							<ul class="am-avg-sm-2 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active"><a href="#tab1">所有评价</a></li>
								<li><a href="#tab2">有图评价</a></li>

							</ul>

							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">

									<div class="comment-main" id="allcomment">
										
									</div>

								</div>
								<div class="am-tab-panel am-fade" id="tab2">
									
									<div class="comment-main" id="photocomment">
										
									</div>									
									
								</div>
							</div>
						</div>

					</div>

				</div>
				<!--底部-->
				<include file="./Application/Home/View/Share/footer.html" />
			</div>

			<aside class="menu">
				<include file="./Application/Home/View/Share/menu.html" />

			</aside>
		</div>

	</body>
	
<!--所有订单-->
<script id="allcomment-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<div class="comment-list">
		<ul class="item-list">
			
			
			<div class="comment-top">
				<div class="th th-price">
					<td class="td-inner">评价</td>
				</div>
				<div class="th th-item">
					<td class="td-inner">商品</td>
				</div>													
			</div>
			<li class="td td-item">
				<div class="item-pic">
					<a href="#" class="J_MakePoint">
						<img src="<%=data[i].head_img%>" class="itempic">
					</a>
				</div>
			</li>											
			<%=reply = data[i].reply%>
			<li class="td td-comment">
				<div class="item-title">
					<div class="item-opinion"><%=reply[0].good%></div>
					<div class="item-name">
						<a href="#">
							<p class="item-basic-info"><%=data[i].ware_name%></p>
						</a>
					</div>
				</div>
				<div class="item-comment">
					<%=reply[0].content%>
					<div class="filePic"><img src="" alt=""></div>	
				</div>

				<div class="item-info">
					<div>
						<p class="info-little"><span><%=data[i].ware_cart%>:<%=data[i].cart_list%></span></p>
						<p class="info-time"><%=dateFormat(reply[0].addtime)%></p>

					</div>
				</div>
			</li>

		</ul>

	</div>
<%}%>
</script>
	
<!--有图评价-->
<script id="photocomment-list-tql" type="text/html">
<%for (var i=0;i<data.length;i++) {%>
	<div class="comment-list">
		<ul class="item-list">
			
			
			<div class="comment-top">
				<div class="th th-price">
					<td class="td-inner">评价</td>
				</div>
				<div class="th th-item">
					<td class="td-inner">商品</td>
				</div>													
			</div>
			<li class="td td-item">
				<div class="item-pic">
					<a href="#" class="J_MakePoint">
						<img src="<%=data[i].head_img%>" class="itempic">
					</a>
				</div>
			</li>											
			<%=reply = data[i].reply%>
			<li class="td td-comment">
				<div class="item-title">
					<div class="item-opinion"><%=reply[0].good%></div>
					<div class="item-name">
						<a href="#">
							<p class="item-basic-info"><%=data[i].ware_name%></p>
						</a>
					</div>
				</div>
				<div class="item-comment">
					<%=reply[0].content%>
					<%var photo = data[i].photo%>
					<%for (var j=0;j<photo.length;j++) {%>
					<div class="filePic"><img src="<%=photo[j].img_src%>" alt=""></div>	
					<%}%>
				</div>

				<div class="item-info">
					<div>
						<p class="info-little"><span><%=data[i].ware_cart%>:<%=data[i].cart_list%></span></p>
						<p class="info-time"><%=dateFormat(reply[0].addtime)%></p>

					</div>
				</div>
			</li>

		</ul>

	</div>
<%}%>
</script>	

<script>
function getLocalTime(nS) {     
	return new Date(parseInt(nS) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");      
}    
function getprogram(name) { 
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
	var r = window.location.search.substr(1).match(reg); 
	if (r != null) return unescape(r[2]); return null; 
} 
var id = getprogram('id');


COMMENT.run();
</script>
</html>
